package br.ufrgs.seguranca.cryptography;

import java.math.BigInteger;

public class RSACipher {
	
	public static BigInteger cipher(BigInteger message, BigInteger e, BigInteger n) {
		return message.modPow(e, n);
	}
	
	public static BigInteger decipher(BigInteger c, BigInteger d, BigInteger n) {
		return c.modPow(d, n);
	}
	
	public static BigInteger signature(BigInteger message, BigInteger d, BigInteger n) {
		return message.modPow(d, n);
	}

}
